Skip to content

Conversation

@BoDonkey
Copy link
Contributor

@BoDonkey BoDonkey commented Dec 5, 2025

Summary

Summarize the changes briefly, including which issue/ticket this resolves. If it closes an existing Github issue, include "Closes #[issue number]"

This PR adds the API sandbox for the OpenAPI spec file, as well as links to download the OpenAPI file or visit the GitHub repo. This page will be updated once the OpenAPI spec file is also in an outside aggregator like Postman. Note that the dependencies might be different than the existing main, so run npm update after switching to this branch.

What are the specific steps to test this change?

For example:

  1. Run the website and log in as an admin
  2. Open a piece manager modal and select several pieces
  3. Click the "Archive" button on the top left of the manager and confirm that it should proceed
  4. Check that all pieces have been archived properly

What kind of change does this PR introduce?

(Check at least one)

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Build-related changes
  • Other

Make sure the PR fulfills these requirements:

  • It includes a) the existing issue ID being resolved, b) a convincing reason for adding this feature, or c) a clear description of the bug it resolves
  • The changelog is updated
  • Related documentation has been updated
  • Related tests have been updated

If adding a new feature without an already open issue, it's best to open a feature request issue first and wait for approval before working on it.

Other information:

@BoDonkey BoDonkey requested a review from boutell December 5, 2025 13:33
Copy link
Member

@boutell boutell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just have a high level

@@ -0,0 +1,117 @@
---
title: ApostropheCMS API Documentation
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a high level question:

What is the relationship between these pages and our existing REST API documentation?

https://apostrophecms.com/docs/reference/api/README.html#rest-api-route-reference

How should the reader understand when to refer to each? How will each be maintained going forward? Is there redundancy, are there oversights if we eliminate one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, this was more of a landing page that talked about the spec. I think all of our written reference material is valuable and some people will want to just use the OpenAPI spec file and others will want to read long-form. I think we should keep both and keep them up-to-date. The spec file should be kept up because it is the basis for devs generating a customized API for their specific projects. Does that answer your question? Maybe this file should be added as the actual landing page and be redone to address your question about when devs should use each?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants